<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>12-日期</title>

</head>
<body>
<!--
    日期
-->

</body>
<script>
    let date=new Date();
    console.log(date)

    console.log(date.toLocaleString())

    console.log(date.getFullYear());
    console.log(date.getMonth()+1);
    console.log(date.getDate());
    console.log(date.getTime());

</script>
</html>